The functions assign content to various elements of a simplex object:
optimsimplex.setallSet all the coordinates and the function values of all the vertices.
optimsimplex.setallfvSet all the function values of all the vertices.
optimsimplex.setallxSet all the coordinates of all the vertices.
optimsimplex.setfvSet the function value at a givenindex.
optimsimplex.setnSet the dimension of the space of the simplex.
optimsimplex.setnbveSet the number of vertices of the simplex.
optimsimplex.setveSet the coordinates of the vertex and the function values at a given index in the current simplex.
optimsimplex.setxSet the coordinates of the vertex at a given index in the current simplex.
optimsimplex.setall(this = NULL, simplex = NULL)
optimsimplex.setallfv(this = NULL, fv = NULL)
optimsimplex.setallx(this = NULL, x = NULL)
optimsimplex.setfv(this = NULL, ive = NULL, fv = NULL)
optimsimplex.setn(this = NULL, n = NULL)
optimsimplex.setnbve(this = NULL, nbve = NULL)
optimsimplex.setve(this = NULL, ive = NULL, fv = NULL, x = NULL)
optimsimplex.setx(this = NULL, ive = NULL, x = NULL)A simplex object.
The simplex to set. It is expected to be a nbve x n+1 matrix where n is the dimension of the space, nbve is the number of vertices and with the following content:
simplex[k,1] is the function value of the vertex k, with k =
1 to nbve,
simplex[k,2:(n+1)] is the coordinates of the vertex k, with
k = 1 to nbve.
A row vector of function values; fv[k] is expected to be the
function value for the vertex k, with k = 1 to nbve. For
optimsimplex.setfv, fv is expected to be a numerical scalar.
The nbve x n matrix of vertice coordinates; the vertex is expected to
be stored in x[k,1:n], with k = 1 to nbve. For
optimsimplex.setve and optimsimplex.setx, x is expected
to be a row matrix.
Vertex index.
The dimension of the space of the simplex.
The number of vertices of the simplex.
Return a updated simplex object this.